import service from '@/api'

//获取记录
export function getAuthPagelist(params) {
  return service({
    url:'/auth/pagelist',
    method:'POST',
    params
  })
}

export function addPage(params) {
  return service({
    url:'/auth/addpage',
    method:'POST',
    data:params
  })
}

export function deletePage(params) {
  return service({
    url:'/auth/deletePage',
    method:'POST',
    data:params
  })
}

export function editPage(params) {
  return service({
    url:'/auth/editPage',
    method:'POST',
    data:params
  })
}

export function getGroups(params) {
  return service({
    url:'/auth/groups',
    method:'POST',
    data:params
  })
}

export function addGroups(params) {
  return service({
    url:'/auth/addGroup',
    method:'POST',
    data:params
  })
}

export function editGroup(params) {
  return service({
    url:'/auth/editGroup',
    method:'POST',
    data:params
  })
}

export function deleteGroup(params) {
  return service({
    url:'/auth/deleteGroup',
    method:'POST',
    data:params
  })
}

export function updatePass(params) {
  return service({
    url:'/auth/updatePass',
    method:'POST',
    data:params
  })
}
